/*
 * @Description  : 
 * @Author       : 陈韵同
 * @Date         : 2021-03-19 13:45:15
 * @LastEditTime : 2021-03-19 14:21:07
 * @LastEditors  : 陈韵同
 * @FilePath     : e:\协同云组件库\新建文件夹 (2)\cloud-components\config\common\clean.js
 */
require('shelljs/global');
const rimraf = require('rimraf')
const chalk = require('chalk');

const options = process.argv;
const type = options[2];
switch (type) {
  case 'test':
  case 't':
    rimraf.sync('tests/unit/__snapshots__/*')
    rimraf.sync('docs/unit-test-coverage/*')
    break;

  default:
    console.log(chalk.red(`请输入参数`));
    break;
}